// 自动生成模板UserGoodsInfo
package autocode

import (
	"time"

	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// UserGoodsInfo 结构体
// 如果含有time.Time 请自行import time包
type UserGoodsInfo struct {
	global.GVA_MODEL
	UserName   string     `json:"userName" form:"userName" gorm:"column:user_name;comment:用户名字;size:50;"`
	OpenId     string     `json:"openId" form:"openId" gorm:"column:open_id;comment:用户openID;size:100;"`
	GoodsName  string     `json:"goodsName" form:"goodsName" gorm:"column:goods_name;comment:奖品名称;size:40;"`
	SourceType *int       `json:"sourceType" form:"sourceType" gorm:"column:source_type;comment:奖品来源（1-兑换；2-抽奖）;size:10;"`
	GoodsId    *int       `json:"goodsId" form:"goodsId" gorm:"column:goods_id;comment:奖品表id;size:19;"`
	UserId     *int       `json:"userId" form:"userId" gorm:"column:user_id;comment:奖品用户;size:19;"`
	Status     *int       `json:"status" form:"status" gorm:"column:status;comment:领取状态（0-未领用；1-已领用）;size:10;"`
	GoodsValue *int       `json:"goodsValue" form:"goodsValue" gorm:"column:goods_value;comment:奖品对应的值（奶滴专用）;size:10;"`
	Type       *int       `json:"type" form:"type" gorm:"column:type;comment:奖品类型（1-奶滴；2-优惠劵；3-实物奖励）;size:10;"`
	CreateTime *time.Time `json:"createTime" form:"createTime" gorm:"column:create_time;comment:创建时间;"`
	StartData  *time.Time `form:"startData"`
	EndData    *time.Time `form:"endData"`
}

// TableName UserGoodsInfo 表名
func (UserGoodsInfo) TableName() string {
	return "user_goods_info"
}
